package com.zrq.secondkill.service;

import java.util.concurrent.TimeUnit;

/**
 *一般性的缓存,超时参数尽力而为,不保证生效
 * @author zrq
 */
public interface CacheService {
    void set(String key, Object value, long expire, TimeUnit timeUnit);

    Object get(String key);
}
